import Vue from 'vue';
import Vuex from 'vuex';
// import { tianditu, tiandituZJ, tiandituYX } from "../../libs/tianditu";
Vue.use(Vuex);
export default new Vuex.Store({
  state: {
    docLayer: null,
    map: null,
    highLightCamera: false,
  },
  // getters: {
  //   getTitle(state) {
  //     return state.map;
  //   },
  // },
  mutations: {
    addMap(state, map) {
      state.map = map;
    },
    addLayer(state, docLayer) {
      state.docLayer = docLayer;
    },
    Camera(state, value) {
      state.highLightCamera = value;
    },
  },
});
